package model;

import java.util.ArrayList;

public class Scan {
	private String command, time, host;
	private ArrayList<PortEntry> ports;
	private ScanType type;
	
	public Scan (String command, String host){
		this.command = command;
		this.time = command;
		this.type = ScanType.FULLPORT;
		this.host = host;
		ports = new ArrayList<PortEntry>();
	}
	
	public String getTime(){
		return time;
	}
	public String getCommand(){
		return command;
	}
	public ScanType getScanType(){
		return type;
	}
	public PortEntry[] getPorts(){
		return ports.toArray(new PortEntry[0]);
	}
	public void addPortEntry(PortEntry port){
		ports.add(port);
	}
	public String getHost(){
		return host;
	}
	
	
}
